﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace EHTWebsiteProject
{
    public partial class Rekonsult : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Session["UserName"] != null)
                {
                    ltrHello.Text = "Velkommen:";
                    ltrUser.Text = HttpContext.Current.Session["UserName"].ToString();
                    ltrLogout.Text = "Loggut";
                }
            }
        }

        protected void Imgsearch_Click(object sender, ImageClickEventArgs e)
        {
            Response.Redirect("Resultere-" + txtsearch.Text + ".html");
        }

        protected void ImagLogin_Click(object sender, ImageClickEventArgs e)
        {
            Response.Redirect("LoggInn.html");
        }

        protected void ImagNewCustomer_Click(object sender, ImageClickEventArgs e)
        {
            Response.Redirect("Registrer.html");
        }
    }
}